package com.pronosticnews.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.pronosticnews.shared.model.StadeDto;

public class SelectedStadeEvent extends GwtEvent<SelectedStadeEventHandler> {
	public static Type<SelectedStadeEventHandler> TYPE = new Type<SelectedStadeEventHandler>();
	
	private StadeDto paysSelected;

	public SelectedStadeEvent(StadeDto paysSelected) {
		this.paysSelected = paysSelected;
	}

	@Override
	public Type<SelectedStadeEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SelectedStadeEventHandler handler) {
		handler.onSelect(this);
	}

	public StadeDto getStadeSelected() {
		return paysSelected;
	}
	
}
